AL SET SOUND MAX DISTANCE

This function will set the maximum distance from the sound after which, attenuation will stop. Attenuation is applied in the space between the minimum distance and the maximum distance, where the maximum is the furtherest point from which you can still hear the sound.

  Syntax
AL SET SOUND MAX DISTANCE soundNumber, distance
  Parameters
soundNumber
Integer
The ID you want to use to create this sound.
distance
Float
The maximum distance from the sound where attenuation will begin. Default value is 0.0.

  Returns

This function does not return a value.

  See also

DarkAL Functions Menu